﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class MasterDepreciationTypeBLL 
    {
        private static readonly MasterDepreciationTypeDAL dal = DataAccess.CreateMasterDepreciationType();

        public MasterDepreciationTypeBLL()
        {

        }

        public IList<MasterDepreciationTypeInfo> GetMasterDepreciationType()
        {
            return dal.GetMasterDepreciationType();
        }

        public IList<MasterDepreciationTypeInfo> GetMasterDepreciationType(string record_status)
        {
            return dal.GetMasterDepreciationType(record_status);
        }

        public MasterDepreciationTypeInfo GetMasterDepreciationType(int seq)
        {
            return dal.GetMasterDepreciationType(seq);
        }

        public void Insert(MasterDepreciationTypeInfo info)
        {
            try
            {
                dal.Insert(info);
            }
            catch
            {
                throw;
            }
        }

        public void Update(MasterDepreciationTypeInfo info)
        {
            try
            {
                dal.Update(info);
            }
            catch
            {
                throw;
            }
        }

        public void Delete(MasterDepreciationTypeInfo info)
        {
            try
            {
                dal.Delete(info);
            }
            catch
            {
                throw;
            }
        }

        public void DeleteAll(IList<MasterDepreciationTypeInfo> infoList)
        {
            try
            {
                dal.DeleteAll(infoList);
            }
            catch
            {
                throw;
            }
        }

        public void DeleteFromDB(IList<MasterDepreciationTypeInfo> infoList)
        {
            try
            {
                dal.DeleteFromDB(infoList);
            }
            catch
            {
                throw;
            }
        }
    }
}
